package test0110;

// 能看懂程序实现什么功能吗?
public class Java09 {
    public static void main(String[] args) {
        int[] arr = {5, 0, 7, 2, 6};
        System.out.println(m(arr, 3, arr.length-1));
    }

    public static int m(int[] input, int number, int index) {
        if (index == -1) {
            return 0;
        } else if (input[index] > number) {
            return 1 + m(input, number, index - 1);
        } else {
            return m(input, number, index - 1);
        }
    }
}
